package vashion.azeroth.contant;

/**
 * Created by tingting on 15/8/31.
 * 商品服务异常枚举
 */
public enum ItemErrorEnum {

    ITEM_QUERY_ERROR(8001, "商品查询异常"),
    SYSTEM_ERROR(8002, "商品操作异常"),
    ITEM_ARG_ERROR(8003, "商品参数不全，商品描述、价格、 币种编号、创建者、类目、品牌为必填选项"),
    ITEM_IS_NULL(8004, "商品为空"),
    CONTAINS_ILLEGAL_WORD(8006, "包含违禁字"),
    PRICE_ERROR(8007, "价格设置出错，原价要大于优惠价"),
    NOT_EXITS(8008, "商品不存在"),
    SKU_ERROR(8009, "商品sku出错"),
	ITEM_NO_PUBLISH_AUTHORITY(8010, "没有权限发布商品"),
	ITEM_NOT_OWER(8011, "不是你发布的商品"),
	BRAND_ID_ERROR(8012, "商品品牌ID错误"),
	CATEGORY_ID_ERROR(8013, "商品类目ID错误");

    private
    int errorCode;
    private
    String errorMessage;

    public int getErrorCode() {
        return errorCode;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    private ItemErrorEnum(int errorCode, String errorMessage) {
        this.errorCode = errorCode;
        this.errorMessage = errorMessage;
    }


}
